package com.example.service.impl;


import com.example.Bean.po.CollegeInfo;
import com.example.Dao.CollegeInfoDao;
import com.example.service.ICollegeInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.*;

@Service
public class CollegeInfoService implements ICollegeInfoService {
	@Autowired
	CollegeInfoDao collegeInfoDao;
	@Override
	public List<CollegeInfo> findCollegeInfo() {
		try{
			List<CollegeInfo> collegeInfoList = collegeInfoDao.selectAll();
			return collegeInfoList;
		}catch (Exception e){
			e.printStackTrace();
			return Collections.emptyList();
		}
	}
}
